import ajax from '@/utils/request.js'
const mock = true

const api = {
    userLogin (userForm) {
        return ajax({
            method: 'post',
            url: '/login',
            data: userForm,
            mock
        })
    },
    getMenuList () {
        return ajax({
            url: '/menu',
            mock
        })
    },
    getBrandList () {
        return ajax({
            url: '/brand',
            mock
        })
    },
    getOrderList () {
        return ajax({
            url: "/orders",
            mock
        })
    },
    getChartsWeek () {
        return ajax({
            url: "/charts/week",
            mock
        })
    },
    getActiveUsers () {
        return ajax({
            url: "/activeUsers",
            mock
        })
    }
}


export default api